using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace SpoonCore.MultimediaStream
{
	public class MultimediaStreamInfo
	{
		private int _id;
		private string _name;

		public MultimediaStreamInfo(BinaryReader br)
		{
			_id = br.ReadInt32();
			_name = br.ReadString();
		}

		public byte[] GetBytes()
		{
			MemoryStream stream = new MemoryStream();
			BinaryWriter bw = new BinaryWriter(stream);

			bw.Write(_id);
			bw.Write(_name);

			return stream.ToArray();
		}
	}
}
